<?php

class Helper{
    
    public static function getIndex($array, $value){
        foreach ($array as $key=>$val){
            if($val==$value){
                return $key;
            } 
           
        }
         return -1;
    }
}